| Conditions | 3 |
| Paths | 5 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | var Objects = { |
||
| 30 | merge: function (target, source, deep) { |
||
| 31 | if (!Objects.isObject(source)) { |
||
| 32 | return source |
||
| 33 | } |
||
| 34 | target = Objects.isObject(target) ? target : {} |
||
| 35 | Object.keys(source).forEach(function (key) { |
||
| 36 | target[key] = deep ? Objects.merge(target[key], source[key], true) : source[key] |
||
| 37 | }) |
||
| 38 | return target |
||
| 39 | } |
||
| 40 | } |
||
| 45 |